package com.pj.wisdomlogistics.mvp.contract;


import com.pj.wisdomlogistics.entity.CarDetailInfo;
import com.pj.wisdomlogistics.mvp.frame.base.BasePresenter;
import com.pj.wisdomlogistics.mvp.frame.base.BaseView;

import java.io.File;


public interface CarDetailContract {
    public interface View extends BaseView {
        public void onError(String errorMsg);
        public void onSuccess(CarDetailInfo mInfo);
        public void onSignSuccess();
        public void onCheckSuccess();
        public void onSendSuccess();
        public void onPjSuccess();
        public void onFinishSuccess();
        public void onUndoSuccess();
    }

    public interface Presenter extends BasePresenter {
        public void findCarApplyDetail(int carApplyID);
        public void carApplySign(
                 int carApplyID,
                 String signUID,
                 File sign,
                 int state,
                 String comment
        );
        public void  carApplyComment(
                String userID ,
                int carApplyID ,
                String comment ,
                int state);
        public void carApplyAllot(
                String userID ,
                String carApplyID ,
                String  state ,
                String driverName,
                String driverTel ,
                String carModel ,
                String carNum ,
                String driverID ,
                String carID ,
                String comment
        );
        public void carApplyAssess(
                String assess ,
                String carApplyID ,
                int levels
        );
        public void carApplyFinish(
                String userID ,
                int carApplyID,
                String beforeMile ,
                String afterMile
        );
        public void cancelCar(
                int carApplyID
        );
    }
}
